package cn.ecut.dao;

import cn.ecut.model.Guanliyuan;
import cn.ecut.model.Yuangong;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface GuanliyuanDao {
    int deleteByPrimaryKey(Integer id);

    int deleteYuangongByyangongHao(String yuangongHao);

    int insert(Guanliyuan record);

    int insertSelective(Guanliyuan record);

    Guanliyuan selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Guanliyuan record);

    int updateByPrimaryKey(Guanliyuan record);

    String selectMimaByyonghuming(String yonghuming);

    String selectyonghumingBymima(String mima);

    int updateByyonghuming(Guanliyuan guanliyuan);

    int insertYuangong(Yuangong yuangong);

    int selectAllcount();

    List<Yuangong> selectAllyuangons();
    List<Yuangong> advanceSelect(String s);
    Integer updateAllByYuangongHao(Yuangong yuangong);
    String selectmimaByyuangongHao(String yuangongHao);
}